package org.aurora.client;

public class AuroraClientConfig {
    private String appcode;
    /**
     * 核心工作线程数
     */
    private int coreThreadSize = 10;

    /**
     * todo 线程数量该如何设置
     * 最大工作线程数
     */
    private int maxThreadSize = 10;
    /**
     * 获取调度器地址域名
     */
    private String fetchSchedulerServerAddrUrl = "http://localhost:10000/fetchSchedulerServerAddr";

    /**
     * 获取调度器地址超时时间
     */
    private long fetchSchedulerServerAddrTimeout = 3000L;

    /**
     * 上报任务超时时间
     */
    private long reportTaskTimeout = 3000L;

    /**
     * 获取调度器地址重试次数
     */
    private int fetchSchedulerServerAddrRetryTimes = 3;

    /**
     * 获取调度器地址重试间隔
     */
    private long fetchSchedulerServerAddrRetryInterval = 1000L;

    /**
     * 调度器 ip
     */
    private String schedulerServerIp;
    /**
     * 调度器 端口号
     */
    private String schedulerServerPort;

    public String getAppcode() {
        return appcode;
    }

    public void setAppcode(String appcode) {
        this.appcode = appcode;
    }

    public int getCoreThreadSize() {
        return coreThreadSize;
    }

    public void setCoreThreadSize(int coreThreadSize) {
        this.coreThreadSize = coreThreadSize;
    }

    public int getMaxThreadSize() {
        return maxThreadSize;
    }

    public void setMaxThreadSize(int maxThreadSize) {
        this.maxThreadSize = maxThreadSize;
    }

    public String getSchedulerServerIp() {
        return schedulerServerIp;
    }

    public void setSchedulerServerIp(String schedulerServerIp) {
        this.schedulerServerIp = schedulerServerIp;
    }

    public String getSchedulerServerPort() {
        return schedulerServerPort;
    }

    public void setSchedulerServerPort(String schedulerServerPort) {
        this.schedulerServerPort = schedulerServerPort;
    }

    public String getFetchSchedulerServerAddrUrl() {
        return fetchSchedulerServerAddrUrl;
    }

    public void setFetchSchedulerServerAddrUrl(String fetchSchedulerServerAddrUrl) {
        this.fetchSchedulerServerAddrUrl = fetchSchedulerServerAddrUrl;
    }

    public long getFetchSchedulerServerAddrTimeout() {
        return fetchSchedulerServerAddrTimeout;
    }

    public void setFetchSchedulerServerAddrTimeout(long fetchSchedulerServerAddrTimeout) {
        this.fetchSchedulerServerAddrTimeout = fetchSchedulerServerAddrTimeout;
    }

    public int getFetchSchedulerServerAddrRetryTimes() {
        return fetchSchedulerServerAddrRetryTimes;
    }

    public void setFetchSchedulerServerAddrRetryTimes(int fetchSchedulerServerAddrRetryTimes) {
        this.fetchSchedulerServerAddrRetryTimes = fetchSchedulerServerAddrRetryTimes;
    }

    public long getFetchSchedulerServerAddrRetryInterval() {
        return fetchSchedulerServerAddrRetryInterval;
    }

    public void setFetchSchedulerServerAddrRetryInterval(long fetchSchedulerServerAddrRetryInterval) {
        this.fetchSchedulerServerAddrRetryInterval = fetchSchedulerServerAddrRetryInterval;
    }

    public long getReportTaskTimeout() {
        return reportTaskTimeout;
    }

    public void setReportTaskTimeout(long reportTaskTimeout) {
        this.reportTaskTimeout = reportTaskTimeout;
    }
}
